import config from "@/config";
import http from "@/utils/request";

export default {
    set: {
        url: `${config.API_URL}/marketing.Task/set`,
        name: "设置每日必领",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
    getSetInfo: {
        url: `${config.API_URL}/marketing.Task/set`,
        name: "获取每日必领信息",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    saveTask: {
        url: `${config.API_URL}/marketing.Task/saveTask`,
        name: "设置每日任务",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
    getLog: {
        url: `${config.API_URL}/marketing.Task/log`,
        name: "获取领取信息",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    }
};